//
//  MRMapViewController.m
//  Travel_World
//
//  Created by dllo on 15/10/19.
//  Copyright © 2015年 TLS. All rights reserved.
//

#import "MRMapViewController.h"
#import <MapKit/MapKit.h>

@interface MRMapViewController ()

@property (nonatomic, strong) MKMapView *map;

@property (nonatomic, strong) NSMutableArray *annotations;

@end

@implementation MRMapViewController

- (void)viewDidAppear:(BOOL)animated
{
    [super viewDidAppear:animated];
    
    [self.map addAnnotations:self.annotations];
    
}

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    
    self.tabBarController.tabBar.hidden = YES;
    
    self.navigationController.navigationBar.translucent = NO;
    
//    self.navigationController.navigationBar.tintColor = [UIColor whiteColor];
    
//    [self.navigationController.navigationBar setBackgroundImage:[UIImage imageNamed:@"bigShadow"] forBarMetrics:UIBarMetricsCompact];
//    self.navigationController.navigationBar.layer.masksToBounds = YES;

    self.title = self.content;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.map = [[MKMapView alloc] initWithFrame:CGRectMake(0, 0, WIDTH, HEIGHT)];
    [self.view addSubview:self.map];
    
//    [self.map showAnnotations:self.annotations edgePadding:UIEdgeInsetsMake(20, 20, 20, 80) animated:YES];
    
////    self.map.showsUserLocation = YES;
//    
//    self.map.mapType = MKMapTypeStandard;
//    
//    self.map.userTrackingMode = MKUserTrackingModeFollowWithHeading;
    
    // 设置经纬度
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
